<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>文件上传</title>
	<link rel="stylesheet" href="freeUpload.css">
</head>
<body>
<div style="width: 515px;height: 440px;">
	<div id="dropzone" >

	</div>
</div>
<script src="freeUpload.js"></script>

<script>
    upload({
        el:'dropzone',  //元素id
        url:'http://sy.cn/home/upload/ups', //上传地址
        type:'POST',//上传方式
        fileName:'file[]',
        fileNum:5,//文件数
        fileSize:1024*3,//文件大小（kb）
        fileType:['jpg','gif'],
        success:function (data) {
            //成功
            console.log( data );
        },
        error:function (data) {
            //失败
            console.log(data);
        }
    });
</script>

</body>
</html>